package com.yhy.dubbo.api.mongo;

import com.yhy.domain.mongo.Publish;
import com.yhy.domain.vo.PageResult;

public interface PublishApi {

    String save(Publish publish);

    PageResult findMovementsByUid(Integer page, Integer pagesize, Long userId);

    PageResult findMovementsByRecommend(Integer page, Integer pagesize, Long userId);

    PageResult findOwnMovements(Integer page, Integer pagesize, Long userId);

    Publish findMovementDetailById(String publishId);

    PageResult findAll(Integer page, Integer pagesize, Long uid, Integer state);

    Publish findById(String publishId);

    void updateState(String publishId, Integer state);

    Publish findByPid(Long pid);
}